package com.mxdx.edu.controller;

import com.mxdx.edu.common.ApiResult;
import com.mxdx.edu.common.CommonUtils;
import com.mxdx.edu.common.Digests;
import com.mxdx.edu.common.log.AppLogger;
import com.mxdx.edu.constant.StaticConstants;
import com.mxdx.edu.enums.*;
import com.mxdx.edu.model.StudentInfo;
import com.mxdx.edu.service.ISchoolStatusService;
import com.mxdx.edu.service.IStudentService;
import com.mxdx.edu.util.ServletUtil;
import com.mxdx.edu.util.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用户Controller
 * 
 * @author howie
 *
 */
@Controller
public class ProductTestController extends BaseController {

	private AppLogger logger = new AppLogger(ProductTestController.class);

	/**
	 * 供支付宝检测用列表页面
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/public/product/productList")
	public ModelAndView list(HttpServletRequest request) {
		logger.entry(ServletUtil.getClientIp(request), "productList");
		ModelAndView result = new ModelAndView("/h5/productList");
		logger.info(ServletUtil.getClientIp(request));
		return result;

	}

	/**
	 * 供支付宝检测用详情页面
	 * @param request
	 * @return
	 */
	@RequestMapping(value = "/public/product/productDetail")
	public ModelAndView detail(HttpServletRequest request) {
		logger.entry(ServletUtil.getClientIp(request), "productDetail");
		ModelAndView result = new ModelAndView("/h5/productDetail");
		String id = request.getParameter("id");
		result.addObject("id", id);
		logger.info(ServletUtil.getClientIp(request));
		return result;

	}

}
